<%--
  Created by IntelliJ IDEA.
  User: JackVictor
  Date: 2023/12/18
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Boss登录页面</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="js/loginOut.js"></script>
</head>
<body>
<%
    //登录查错
    int login_error=1;
    Integer code = (Integer) request.getAttribute("error_code");
    if(code!=null){
        login_error=code.intValue();
        if(login_error==0){
            //您已登录，请勿重复操作-0%>
<script>logining_0()</script>
<%
}else if(login_error==2){
    //登录失败-用户名或密码错误!%>
<script>nameOrPwd_2()()</script>
<%
        }
    }
%>
<%
    //    登出查错
    boolean logOut_tag=false;
    Boolean tag = (Boolean) request.getAttribute("tag");
    if(tag!=null){
        logOut_tag=tag.booleanValue();
        if(logOut_tag==true){
            //登出成功%>
<script>showinfo_T()</script>
<%
        }
    }
%>
<h1 align="center">LinkingMall Boss登录页面</h1>
<form action="login">
    <p style="text-align: center;font-size: 28px">您的身份是:<input type="text" name="identity" value="boss" readonly></p>
    <p style="text-align: center;font-size: 32px">用户名:<input type="text" name="bname"></p>
    <p style="text-align: center;font-size: 32px">密码:<input type="password" name="pwd"></p>
    <p style="text-align: center">
        <input style="font-size: 20px" type="submit" value="登录"><br>
    </p>
</form>
</body>
</html>
